#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
class person
{
	int _id;
	const char* _name;
public:
	person(int id=1, const char* name="zs")
	{
		_id = id;
		_name = name;
	}
	virtual void test()
	{
		cout << "person" << endl;
	}
};
class student :public person
{
	int _number;
public:
	student(int number, int id, const char* name)
		:person(id, name)
		, _number(number)
	{

	}
	virtual void test()
	{
		cout << "student" << endl;
	}
};
void Test(person& p)
{
	p.test();
}
int main()
{
	student s(11, 22, "zs");
	person p;
	Test(p);
	Test(s);
	return 0;
}